package com.zxh.blog.service;

import com.zxh.blog.domain.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {

	User findUserByUserName(String userName);

	Integer addUser(User user);

	void updateUser(User user);

	void deleteByIds(int[] ids);

	List<User> selectByList();

	void delRoleByUserId(int userId);

	Integer insertUserRole(int userId, int roleId);
}
